From: Lukas Schmelting Date: Thu, 27 Nov 2025 22:58:32 +0000 (+0100) Subject: screenShield: Avoid unfocused authentication view after resume X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~44^2~65 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=4bfa30085;p=gnome-shell.git screenShield: Avoid unfocused authentication view after resume When suspending on the authentication page of the lock screen in a user session, the session resumes with the authentication dialog shown but its password entry field unfocused. Instead, focus moves to the authentication dialog itself while _ensureUnlockDialog() in screenShield.js is called on resume. Avoid this edge case by switching to the clock view instead before suspend, which also provides a more consistent user experience. Co-authored-by: Florian Müllner Part-of: --- diff --git a/js/ui/screenShield.js b/js/ui/screenShield.js index 2e3b33197..65f2e6227 100644 --- a/js/ui/screenShield.js +++ b/js/ui/screenShield.js @@ -244,6 +244,7 @@ export class ScreenShield extends Signals.EventEmitter { _prepareForSleep(loginManager, aboutToSuspend) { if (aboutToSuspend) { + this._dialog?.cancel(); if (this._settings.get_boolean(LOCK_ENABLED_KEY)) this.lock(true); } else {